<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.hotel.jabc.DB"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<title>分组管理</title>
	<link rel="icon" href="../images/icon.jpg" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="../css/generalstyle.css">
	
	
  </head>
  
  <body>
    <%@ include file="admintop.jsp" %>
    <hr width="100%"></hr><br>
    <% Vector<String []> vgroup = DB.getGroup();
       int color=0;//改变每行颜色 
     %>
    <table align="center" width="90%" cellspacing="1" bgcolor="black">
     <tr bgcolor="white">
       <th>名称</th>  <th>图片URL</th>  <th>描述</th>
       <th>规则</th>  <th>修改/删除</th>    
     </tr>     
      <%for(String []s:vgroup)
      {%>
      <tr bgcolor=<%= color%2==0?"eeffee":"ffeeee" %>>
        <td align="center"><%= s[0] %></td>
        <td align="center"><%= s[1] %></td>
        <td align="center"><%= s[2] %></td>
        <td align="center"><%= s[4] %></td> 
        <td align="center">
         <a href=servlet/ListServlet?action=editGroup&&gId=<%= s[3] %>>修改/删除</a>
        </td>
       </tr>
     <%color++;
      }
      %>
    </table><br>
    <center><a href=jsp/addGroup.jsp>添加分组</a></center>
  </body>
</html>
